package com.emm.yixun.common.page;
public class PageUtil {
	
	public static final int FIRST_PAGE = 1;
	
	public static final int DEFAULT_PAGE_SIZE = 10;

	
	private static int getFirst(int pageNo, int pageSize) {
		return (pageNo - 1) * pageSize;
	}

	
	public static int begin(int pageNo, int pageSize){
		return getFirst(pageNo,pageSize);
	}
	
}
